﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AccountRequests.aspx.vb" Inherits="Training.AccountRequests" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training - Training:: Account Requests</title>
<link rel="Stylesheet" type="text/css" media="screen" href="../css/adminStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctr">
        <h2>Account Requests</h2>
        <p>These are requests for access to the Training system.</p>
        
        <div class="text" style="width: 700px;text-align: left;margin:0 auto;">
        
            <asp:GridView ID="gvRequests" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="UserID" 
                DataSourceID="dsAccountRequests" Width="100%">
                <RowStyle CssClass="row1" />
                <EmptyDataRowStyle CssClass="row1" />
                <Columns>
                    <asp:BoundField DataField="UserID" HeaderText="User ID" InsertVisible="False" 
                        ReadOnly="True" SortExpression="UserID">
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FullName" HeaderText="Full Name" ReadOnly="True" 
                        SortExpression="FullName">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CompanyName" HeaderText="Company Name" 
                        SortExpression="CompanyName">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CreatedDate" HeaderText="Created Date" 
                        SortExpression="CreatedDate">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="UserID" 
                        DataNavigateUrlFormatString="AccountRequestReview.aspx?uid={0}" 
                        HeaderText="Review" Text="review">
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle CssClass="small" />
                <HeaderStyle CssClass="rowHead" ForeColor="White" />
                <AlternatingRowStyle CssClass="row2" />
            </asp:GridView>
        </div>
        <br />
        <p><a href="Default.aspx">Admin Main</a></p>
    </div>
    
    <asp:SqlDataSource ID="dsAccountRequests" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Conn %>" 
        SelectCommand="proc_GetAccountRequests" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </form>
</body>
</html>
